package com.ds.esd.custom.component.form.field;

import com.ds.esd.dsm.view.field.FieldFormConfig;
import com.ds.esd.engine.EUModule;
import com.ds.esd.tool.component.SpanComponent;

import java.util.Map;

public class CustomSpanComponent extends SpanComponent {


    public CustomSpanComponent(EUModule euModule, FieldFormConfig field, String target, Object value, Map valueMap) {
        super(field.getId());
        this.getProperties().setId(field.getId());
        this.getProperties().setName(field.getFieldname());
        this.getProperties().setDesc(field.getAggConfig().getCaption());
        this.getProperties().setCaption(field.getAggConfig().getCaption());
        this.setTarget(target);

    }
}
